package com.hopedove.callsystem.activity.MaopiCheck

import android.content.Intent
import android.os.Bundle
import com.hopedove.base.BaseActivity
import com.hopedove.callsystem.activity.ScanCheckActivity
import com.hopedove.callsystem.databinding.ActivityMaopiLayoutBinding


/**
 * 毛坯检验入口
 */
class MaopiMainActivity : BaseActivity() {

    lateinit var binding: ActivityMaopiLayoutBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMaopiLayoutBinding.inflate(layoutInflater)
        setContentView(binding.root)
        initViewAndEvent()
    }

    private fun initViewAndEvent() {

        binding.callProductionBtn.setOnClickListener {
            ScanCheckActivity.actionStart(
                this@MaopiMainActivity,
                ScanCheckActivity.TYPE_SHENGCHAN_CALL
            )
        }
        binding.callCheckBtn.setOnClickListener {
            startActivity(Intent(this, JYQCallActivity::class.java))
        }
        binding.backBtn.setOnClickListener { finish() }
    }


}